<template>
  <div>
    <h2>{{count}}</h2>
  </div>
</template>

<script>
export default {
  name: "Didi",
  data(){
    return{
      count:0
    }
  },
  mounted() {
    this.$bus.$on("count",(count)=>{
      this.count = count
    })
    // console.log(this.$bus)
  }
}
</script>

<style scoped>

</style>